﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Admin_ListApplicantManagement : System.Web.UI.Page
{
    string VacancyID = "";
    AddminMethord AM = new AddminMethord();
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            VacancyID = Request.QueryString["ID"].ToString();
            LoadData();
        }
        catch (Exception ex)
        {
        }
    }
    public void LoadData()
    {
        DataTable tb = AM.LoadDataListHired(VacancyID);
        GVListHired.DataSource = tb.DefaultView;
        GVListHired.DataBind();
        for (int i = 0; i < GVListHired.Rows.Count; i++)
        {
            GVListHired.Rows[i].Cells[3].Text = tb.Rows[i]["DateInterview"].ToString().Substring(0, tb.Rows[i]["DateInterview"].ToString().IndexOf(" "));
        }
    }
}